import { i18n } from 'boot/i18n.js'
import { computed } from 'vue'

// 货架类别
export const rackCategory = computed(() => {
  return [{
    label: `${i18n.t('CarrierCore.RackCategoryTip1')}`, value: 'NORMAL', color: 'blue-5'
  }, {
    label: `${i18n.t('CarrierCore.RackCategoryTip2')}`, value: 'PLATE', color: 'lime-5'
  }, {
    label: `${i18n.t('CarrierCore.RackCategoryTip3')}`, value: 'DRAG', color: 'amber-5'
  }]
})
// 货架固定类型
export const rackFixedTypes = computed(() => {
  return [{
    label: `${i18n.t('CarrierCore.RackFixedTypeTip1')}`, value: '0', color: 'blue-5'
  }, {
    label: `${i18n.t('CarrierCore.RackFixedTypeTip2')}`, value: '1', color: 'lime-5'
  }, {
    label: `${i18n.t('CarrierCore.RackFixedTypeTip3')}`, value: '2', color: 'amber-5'
  }]
})
// 货架方向
export const rackDirections = computed(() => {
  return [{
    label: `${i18n.t('CarrierCore.RackDirectionTip1')}`, value: '0', color: 'blue-5'
  }, {
    label: `${i18n.t('CarrierCore.RackDirectionTip2')}`, value: '1', color: 'lime-5'
  }]
})
// 仓位标识
export const slotIdentifiers = computed(() => {
  return [{
    label: `${i18n.t('CarrierCore.SlotIdentifierTip1')}`, value: '1', color: 'blue-5'
  }, {
    label: `${i18n.t('CarrierCore.SlotIdentifierTip2')}`, value: '2', color: 'lime-5'
  }, {
    label: `${i18n.t('CarrierCore.SlotIdentifierTip3')}`, value: '3', color: 'amber-5'
  }]
})
// 容器业务类型
export const containerBizTypes = computed(() => {
  return [{
    label: `${i18n.t('AGVCore.Forklift')}`, value: '1', color: 'blue-5'
  }, {
    label: 'CTU', value: '2', color: 'grey-5'
  }]
})
// 角度方向
export const directional = computed(() => {
  return [{
    label: `${i18n.t('Misc.Default')}`, value: '-1'
  }, {
    label: '-90', value: '-90'
  }, {
    label: '0', value: '0'
  }, {
    label: '90', value: '90'
  }, {
    label: '180', value: '180'
  }]
})
// 东南西北中
export const directions = computed(() => {
  return [{
    label: `${i18n.t('Misc.East')}`, value: 'east'
  }, {
    label: `${i18n.t('Misc.South')}`, value: 'south'
  }, {
    label: `${i18n.t('Misc.West')}`, value: 'west'
  }, {
    label: `${i18n.t('Misc.North')}`, value: 'north'
  }, {
    label: `${i18n.t('Misc.Center')}`, value: 'middle'
  }]
})
// 更新模式
export const updateModes = computed(() => {
  return [{
    label: 'RCS', value: '0', color: 'blue-5'
  }, {
    label: `${i18n.t('Misc.Default')}`, value: '1', color: 'grey-5'
  }, {
    label: 'RCMS', value: '2', color: 'primary'
  }]
})